from openpyxl import load_workbook


class excel():
    def __init__(self, path, sheetname):
        self.path = load_workbook(path)
        self.sheetname = self.path[sheetname]

    def get_data(self):
        datalist = []
        for line in self.sheetname:
            lis = []
            lis.append(line[0].value)
            datalist.append(lis)
        datalist.pop(0)
        return datalist

if __name__ == '__main__':
    path= r'/unit__001/unit_05/data.xlsx'
    sheetname = 'Sheet1'
    dy = excel(path,sheetname)
    print(dy.get_data())
